<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags" %>

	<div>
	  <table>
	   <tr>
	   		<td class="td1" style="width:5px">&nbsp;</td><td class="sub-title">Sponsors</td>
	   </tr>
	  </table>
	</div>
	<hr />

	<div>
	  <s:if test="list.size > 0">

	  <table style="margin-top: 10px" width="100%" id="commonTable" class="blueTbl">
	  	<tr>
	  		<th>Name</th><th>Telephone</th><th>Mobile</th><th>Email</th><th>Address</th><th>Delete</th>
	  	</tr>
			<s:iterator value="list" status="rowIndex">
				<tr>
				 <td>
				 	<s:property value="systemUser.name"/>
				 </td>
				 <td><s:property value="systemUser.telephone" /> </td>
				 <td><s:property value="systemUser.mobile" /> </td>
				 <td><s:property value="systemUser.email" /> </td>
				 <td><s:property value="systemUser.address" /> </td>
				 <td>
				 <s:url var="childSponsorDeleteUrl" action="delete" namespace="/childSponsor" escapeAmp="false" includeParams="none">
				 		<s:param name="id" value="%{id}"></s:param>
				 </s:url>
				 <sj:a href="%{childSponsorDeleteUrl}" targets="childSponsorResultDiv" onClickTopics="/confirmDelete">
				 		<input type="button" value="Delete" />
				 </sj:a>
				 </td>
			</s:iterator>
		</table>
	  </s:if>
	  <s:else>
	  	No sponsor information yet. Click "Add Sponsor"
	  </s:else>
	</div>

